﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="UpdateEmployee.aspx.cs" Inherits="TempEmployees.Web.WebForm5" Title="עידכון פרטי עובד" %>

<%@ Register Src="~/UserControls/EmployeeDetails.ascx" TagName="EmployeeDetails"
    TagPrefix="uc1" %>
<%@ Register Src="UserControls/GridViews/GridViewAssignments.ascx" TagName="GridViewAssignments"
    TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table align="right" class="searchAssignments-table" dir="rtl">
        <tr>
            <td>
                <asp:UpdatePanel ID="UpdatePanelMessage" runat="server">
                    <ContentTemplate>
                        <div class="searchAssignments-messageDiv">
                            <asp:Panel ID="PanelUpdateMessage" runat="server" Visible="false">
                                <asp:Label ID="LabelUpdateMessage" runat="server" Text="פרטי העובד עודכנו בהצלחה"></asp:Label>
                            </asp:Panel>
                        </div>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="ButtonUpdateEmployee" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td>
                <asp:LinkButton ID="LinkButtonBack" runat="server" OnClick="LinkButtonBack_Click">חזרה</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td>
                <fieldset>
                    <legend class="legend">פרטי העובד </legend>
                    <asp:UpdatePanel ID="UpdatePanelEmployee1" runat="server">
                        <ContentTemplate>
                            <uc1:EmployeeDetails ID="EmployeeDetails1" runat="server" />
                            <br />
                            <asp:Button ID="ButtonUpdateEmployee" runat="server" Text="" OnClick="ButtonUpdateEmployee_Click" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </fieldset>
            </td>
        </tr>
        <tr>
            <td>
                <hr />
            </td>
        </tr>
        <tr>
            <td>
                <br />
                <asp:UpdatePanel ID="UpdatePanelGridView1" runat="server">
                    <ContentTemplate>
                        <fieldset>
                            <legend style="text-align: center">בקשות העסקה של העובד</legend>
                            <uc2:GridViewAssignments ID="GridViewAssignments1" runat="server" />
                        </fieldset>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
</asp:Content>
